/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 */
package com.apache.order.service.plugins;

import com.apache.api.manager.PluginConnector;
import com.apache.api.vo.ParamsVo;
import com.apache.api.vo.ResultEntity;
import com.apache.order.entity.OrderLogMessage;
import com.apache.order.manager.OrderLogMessageManager;

/**
 * description:  订单引擎操作记录详情
 * @author Hou Dayu 创建时间：2015-8-14  
 */
public class LogMessageDetailPluginImpl implements PluginConnector {

	private OrderLogMessageManager orderLogMessageManager;

	/**
	 * TODO 简单描述该方法的实现功能（可选）.  
	 * @see com.dwusoft.api.manager.PluginConnector#execute(com.dwusoft.api.vo.ParamsVo)  
	 */
	public Object execute(ParamsVo arg0) throws Exception {
		ResultEntity entity = new ResultEntity();
		ParamsVo<OrderLogMessage> pvo = new ParamsVo<OrderLogMessage>();
		pvo.setInfoId(String.valueOf(arg0.getParams("logId")));
		OrderLogMessage logMessage = (OrderLogMessage) orderLogMessageManager.getInfoById(pvo);
		entity.setEntity(logMessage);
		entity.setResult("查询成功");
		entity.setResult("true");
		return entity;
	}

	public void setOrderLogMessageManager(OrderLogMessageManager orderLogMessageManager) {
		this.orderLogMessageManager = orderLogMessageManager;
	}

}
